package cn.com;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class TestDemo {
    public static void main(String[] args) {
        System.out.println(checkMobile("18333611815"));
    }
    public static boolean checkMobile(String mobile) {
        if (StringUtils.isBlank(mobile)) {
            return false;
        }
        String rexMobile = "^0{0,1}(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9]|165|166|167|191|193|196|198|199)[0-9]{8}$";
        Pattern regex = Pattern.compile(rexMobile);
        Matcher matcherMobile = regex.matcher(mobile);
        return matcherMobile.matches();
    }
}
